#include <stdio.h>
#include <stdbool.h>
#include <string.h>

bool judgeCircle(char *moves)
{
    int n = strlen(moves), x = 0, y = 0;
    for (int i = 0; i < n; i++)
    {
        if (moves[i] == 'U')
            y--;
        else if (moves[i] == 'D')
            y++;
        else if (moves[i] == 'L')
            x--;
        else if (moves[i] == 'R')
            x++;
    }
    return x == 0 && y == 0;
}

int main()
{
    char moves[] = "UDLR";
    if(judgeCircle(moves))
        printf("okkkk\n");
    else
        printf("noooo\n");
    return 0;
}